﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace EFCoreDemo
{
    public class Book
    {
        public Book()
        {
        }
        public int Id { get; set; }
        public String Title { get; set; }
        public DateTime PubTime { get; set; }
        public Double Price { get; set; }

        //每本书都会给一个人
        [Column("PersonId")]
        public Person ThisPerson{ get; set; }

        public int ThisPersonId { get; set; }
    }
}

